package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.ByBarcodeBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class ScanLocationAdapter extends BaseAdapter<ByBarcodeBean> {
    public ScanLocationAdapter(int layoutResId, @Nullable List<ByBarcodeBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ByBarcodeBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_title,item.getArticleId());
        helper.setText(R.id.tv_goods,item.getArticleName());
        helper.setText(R.id.tv_amount,item.getNum()+"");
        helper.setText(R.id.tv_specification,item.getSpec());
        helper.setText(R.id.tv_batch,item.getBatchNo());
        helper.setText(R.id.tv_product_time,item.getProductTime());
        helper.setText(R.id.tv_admire_date,item.getExpiringTime());
    }
}
